package com.ynet.eq.haiqing.common.valid;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.*;

/**
 * @author 胡超雄
 * @date 2021/5/13 16:13
 * @desc
 */
@Documented
@Constraint(validatedBy = {_IDCustomValid.class })
@Target({ElementType.METHOD, ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
public @interface IDCustomValid {
    String message() default "ID为32位有效ID";

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};
}
